import request from '@/utils/request';
export class MenuApi {

  static permission = {
    findPage: '/system/menu/findPage',
    findById: '/system/menu/findById',
    save: '/system/menu/save',
    update: '/system/menu/update',
    delete: '/system/menu/delete'
  };

  static findPage(params) {
    return request({
      url: this.permission.findPage,
      method: 'post',
      data: params
    });
  };

  static findById(params) {
    return request({
      url: this.permission.findById,
      method: 'post',
      data: params
    });
  };

  static save(params) {
    return request({
      url: this.permission.save,
      method: 'post',
      data: params
    });
  };

  static update(params) {
    return request({
      url: this.permission.update,
      method: 'post',
      data: params
    });
  };

  static delete(params) {
    return request({
      url: this.permission.delete,
      method: 'post',
      data: params
    });
  };

}
